package com.my.bean;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 冯政尚
 * @since 2018-08-26
 */
@TableName("emp_record")
public class EmpRecord extends Model<EmpRecord> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 姓名
     */
	private String name;
    /**
     * 性别
     */
	private Integer sex;
    /**
     * 年龄
     */
	private Integer age;
    /**
     * 籍贯
     */
	@TableField("native_place")
	private String nativePlace;
    /**
     * 入职日期
     */
	@TableField("entry_time")
	private Date entryTime;
    /**
     * 离职日期
     */
	@TableField("dim_time")
	private Date dimTime;
    /**
     * 岗位
     */
	private String post;
    /**
     * 病历史
     */
	@TableField("disease_history")
	private String diseaseHistory;
    /**
     * 健康状态
     */
	private String health;
	/*封装假删除*/
	@TableField("is_delete")
	private int isDelete;

	public int getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(int isDelete) {
		this.isDelete = isDelete;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getNativePlace() {
		return nativePlace;
	}

	public void setNativePlace(String nativePlace) {
		this.nativePlace = nativePlace;
	}

	public Date getEntryTime() {
		return entryTime;
	}

	public void setEntryTime(Date entryTime) {
		this.entryTime = entryTime;
	}

	public Date getdimTime() {
		return dimTime;
	}

	public void setdimTime(Date dimTime) {
		this.dimTime = dimTime;
	}

	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}

	public String getDiseaseHistory() {
		return diseaseHistory;
	}

	public void setDiseaseHistory(String diseaseHistory) {
		this.diseaseHistory = diseaseHistory;
	}

	public String getHealth() {
		return health;
	}

	public void setHealth(String health) {
		this.health = health;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "EmpRecord{" +
				"id=" + id +
				", name='" + name + '\'' +
				", sex=" + sex +
				", age=" + age +
				", nativePlace='" + nativePlace + '\'' +
				", entryTime=" + entryTime +
				", dimTime=" + dimTime +
				", post='" + post + '\'' +
				", diseaseHistory='" + diseaseHistory + '\'' +
				", health='" + health + '\'' +
				", isDelete=" + isDelete +
				'}';
	}
}
